package com.cloud.event.listener;

import com.cloud.event.MsgEvent;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TextMessageListener implements ApplicationListener<MsgEvent> {

    @Override
    public void onApplicationEvent(MsgEvent event) {
        log.info("<发送短信:{}>", event.toString());
    }
}